/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.inventario.modelo;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */
@Embeddable
public class ST_ItemMovimientoPK implements Serializable {

    private String modfor;
    private String codfor;
    private int nrofor;
    private String sucurs;
    private int nroitm;
    private int nroitd;
    private String nivexp;
    private String deposi;
    private String sector;
    private String nserie;
    private String ndespa;
    private String envase;
    private String notros;

    public ST_ItemMovimientoPK() {
    }

    public ST_ItemMovimientoPK(String modfor, String codfor, int nrofor, String sucurs, int nroitm, int nroitd, String nivexp, String deposi, String sector, String nserie, String ndespa, String envase, String notros) {
        this.modfor = modfor;
        this.codfor = codfor;
        this.nrofor = nrofor;
        this.sucurs = sucurs;
        this.nroitm = nroitm;
        this.nroitd = nroitd;
        this.nivexp = nivexp;
        this.deposi = deposi;
        this.sector = sector;
        this.nserie = nserie;
        this.ndespa = ndespa;
        this.envase = envase;
        this.notros = notros;
    }

    public String getCodfor() {
        return codfor;
    }

    public void setCodfor(String codfor) {
        this.codfor = codfor;
    }

    public String getDeposi() {
        return deposi;
    }

    public void setDeposi(String deposi) {
        this.deposi = deposi;
    }

    public String getEnvase() {
        return envase;
    }

    public void setEnvase(String envase) {
        this.envase = envase;
    }

    public String getModfor() {
        return modfor;
    }

    public void setModfor(String modfor) {
        this.modfor = modfor;
    }

    public String getNdespa() {
        return ndespa;
    }

    public void setNdespa(String ndespa) {
        this.ndespa = ndespa;
    }

    public String getNivexp() {
        return nivexp;
    }

    public void setNivexp(String nivexp) {
        this.nivexp = nivexp;
    }

    public String getNotros() {
        return notros;
    }

    public void setNotros(String notros) {
        this.notros = notros;
    }

    public int getNrofor() {
        return nrofor;
    }

    public void setNrofor(int nrofor) {
        this.nrofor = nrofor;
    }

    public int getNroitd() {
        return nroitd;
    }

    public void setNroitd(int nroitd) {
        this.nroitd = nroitd;
    }

    public int getNroitm() {
        return nroitm;
    }

    public void setNroitm(int nroitm) {
        this.nroitm = nroitm;
    }

    public String getNserie() {
        return nserie;
    }

    public void setNserie(String nserie) {
        this.nserie = nserie;
    }

    public String getSector() {
        return sector;
    }

    public void setSector(String sector) {
        this.sector = sector;
    }

    public String getSucurs() {
        return sucurs;
    }

    public void setSucurs(String sucurs) {
        this.sucurs = sucurs;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ST_ItemMovimientoPK other = (ST_ItemMovimientoPK) obj;
        if ((this.modfor == null) ? (other.modfor != null) : !this.modfor.equals(other.modfor)) {
            return false;
        }
        if ((this.codfor == null) ? (other.codfor != null) : !this.codfor.equals(other.codfor)) {
            return false;
        }
        if (this.nrofor != other.nrofor) {
            return false;
        }
        if ((this.sucurs == null) ? (other.sucurs != null) : !this.sucurs.equals(other.sucurs)) {
            return false;
        }
        if (this.nroitm != other.nroitm) {
            return false;
        }
        if (this.nroitd != other.nroitd) {
            return false;
        }
        if ((this.nivexp == null) ? (other.nivexp != null) : !this.nivexp.equals(other.nivexp)) {
            return false;
        }
        if ((this.deposi == null) ? (other.deposi != null) : !this.deposi.equals(other.deposi)) {
            return false;
        }
        if ((this.sector == null) ? (other.sector != null) : !this.sector.equals(other.sector)) {
            return false;
        }
        if ((this.nserie == null) ? (other.nserie != null) : !this.nserie.equals(other.nserie)) {
            return false;
        }
        if ((this.ndespa == null) ? (other.ndespa != null) : !this.ndespa.equals(other.ndespa)) {
            return false;
        }
        if ((this.envase == null) ? (other.envase != null) : !this.envase.equals(other.envase)) {
            return false;
        }
        if ((this.notros == null) ? (other.notros != null) : !this.notros.equals(other.notros)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 67 * hash + (this.modfor != null ? this.modfor.hashCode() : 0);
        hash = 67 * hash + (this.codfor != null ? this.codfor.hashCode() : 0);
        hash = 67 * hash + this.nrofor;
        hash = 67 * hash + (this.sucurs != null ? this.sucurs.hashCode() : 0);
        hash = 67 * hash + this.nroitm;
        hash = 67 * hash + this.nroitd;
        hash = 67 * hash + (this.nivexp != null ? this.nivexp.hashCode() : 0);
        hash = 67 * hash + (this.deposi != null ? this.deposi.hashCode() : 0);
        hash = 67 * hash + (this.sector != null ? this.sector.hashCode() : 0);
        hash = 67 * hash + (this.nserie != null ? this.nserie.hashCode() : 0);
        hash = 67 * hash + (this.ndespa != null ? this.ndespa.hashCode() : 0);
        hash = 67 * hash + (this.envase != null ? this.envase.hashCode() : 0);
        hash = 67 * hash + (this.notros != null ? this.notros.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "ST_ItemMovimientoPK{" + "modfor=" + modfor + "codfor=" + codfor + "nrofor=" + nrofor + "sucurs=" + sucurs + "nroitm=" + nroitm + "nroitd=" + nroitd + "nivexp=" + nivexp + "deposi=" + deposi + "sector=" + sector + "nserie=" + nserie + "ndespa=" + ndespa + "envase=" + envase + "notros=" + notros + '}';
    }

    

    
}
